package Business;

import Main.StartMain;
import Message.Tips;
import Mysql.Update;

import java.io.File;
import java.util.*;

/**
 * 静态常量类
 */
public class FinalAll {

    public final static int EmailSendSpanTime = 5;//邮件发送间隔(分钟)
    public final static String FORMAT_PHONE = "1[34578]\\d{9}";//手机正则表达式
    public final static String FORMAT_NUM = "(-)?[0-9]*";//是否是数字正则表达式
    public final static int OutTimeCookieDay = 30;//cookie的过期时间(天)
    public final static File rootPath = new File(Objects.requireNonNull(FinalAll.class.getResource("/")).getFile()).getParentFile().getParentFile();//网站根目录 F:\Tomcat\apache-tomcat-8.5.73\webapps\blogback
    public static String projectName = "mina";//项目名称

    /**
     * 初始化
     */
    public static boolean init(){
        Date startDate = new Date();
        Date endDate = new Date();
        long span = endDate.getTime() - startDate.getTime();
        Tips.Info("本次MYSQL复位连接延时 " + span + " 毫秒");
        return true;
    }
    



}
